package com.sky.mapper;
import com.sky.entity.ShopStatus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author 符健清
 * @version 1.0
 */
@SuppressWarnings({"all"})
@Mapper
public interface ShopStatusServiceMapper {
    /**
     * 查询商家状态
     * @return
     */
    @Select("SELECT * FROM shop_status ;")
    List<ShopStatus> selectShopStatus();

    /**
     * 修改商家状态
     * @param status
     */
    @Update("UPDATE shop_status SET STATUS=#{status} WHERE id =1;")
    void updateShopStatus(Integer status);
}
